package com.feige.service;

import com.feige.pojo.RolePermission;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 角色权限表 服务类
 * </p>
 *
 * @author feige
 * @since 2020-07-20
 */
@Service
public interface RolePermissionService extends IService<RolePermission> {

    //给角色分配权限
    boolean AssignPermissions(Long roleId, Long[] permissionId);

    //通过角色ID查询对应的权限ID
    List<Long> getPermissionId(Long roleId);
}
